-- want_collection
-- created by shuzy
-- 我要你的收藏品！

return {
    doWish = function(info)
        local bonus = FormulaM.invoke("CALC_WANT_COLLECTION_BONUS", ME.user);

        for _, arr in pairs(bonus) do
            BonusM.doBonus(arr, "want_collection_bonus");
        end

        DungeonM.setDungeonMixedField("want_collection", 1);

        -- 完成对话后抛出捡物品事件
        EventMgr.fire(event.PICK_UP_ITEM, {
            ["bonus"]         = bonus,
            ["pos"]           = 25,
            ["newBonus"]      = true,
            ["type"]          = GRID_TYPE_ITEM,
            ["isItemVisible"] = true,
            ["borrowGrid"]    = true,
        });

        local msg = getLocStr("get_dragon_bonus");
        doAlert(msg);
    end,
};

